Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added endorseEnabled for admin group settings #17

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

HeidiTao
Copy link

@HeidiTao HeidiTao commented Oct 5, 2024

Added endorseEnabled as a new field for the Groups module, and added checkbox to admin group settings.
image

Relevant updated files include:

  • src/groups/data.js : add the field; set null and undefined values to default (1=true)
  • src/groups/create.js : add the new field to group data
  • src/groups/update.js : cast values as bool
  • public/src/admin/manage/group.js : include endorsement checkbox value when admin updates group settings
  • src/views/admin/manage/group.tpl : allow checkbox to show up at frontend
  • public/openapi/read/admin/manage/groups.yaml : update variables with types
  • public/openapi/components/schemas/GroupObject.yaml : update variables with types
  • public/openapi/read/groups.yaml : update variables with types

image

Resolves #16

@HeidiTao HeidiTao changed the title Added endorseEnabled Added endorseEnabled for admin group settings Oct 10, 2024
@HeidiTao HeidiTao merged commit 8cc1715 into f24 Oct 10, 2024
1 check passed
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11265257926

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 3 of 4 (75.0%) changed or added relevant lines in 2 files are covered.
  • 27 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.001%) to 82.663%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/groups/update.js 2 3 66.67%
Files with Coverage Reduction New Missed Lines %
src/api/posts.js 5 88.1%
src/topics/posts.js 7 85.13%
src/posts/votes.js 15 86.12%
Totals Coverage Status
Change from base Build 11022516650: 0.001%
Covered Lines: 22337
Relevant Lines: 25599

💛 - Coveralls

@Victor-Crawshaw Victor-Crawshaw added Endorse features/changes related to admins endorsing a post enhancement New feature or request labels Oct 10, 2024
@Victor-Crawshaw Victor-Crawshaw added this to the Sprint 2 milestone Oct 10, 2024
Copy link

@John-Crawshaw John-Crawshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

Copy link

@Victor-Crawshaw Victor-Crawshaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problems with the changes.

@sherryzhuge1
Copy link

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Endorse features/changes related to admins endorsing a post enhancement New feature or request size: m
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Endorse: Add endorsement selection in admin group settings
5 participants